home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir26
/
epimap1.zip
/
FILES04.EXE
/
HEPRATES.PGM
< prev
next >
Wrap
Text File
|
1994-06-08
|
1KB
|
48 lines
READ SURVDB
SELECT DISEASECOD=10
*Select Hepatitis B records
ERASE TEMP.REC
*Erase previous file
ROUTE TEMP.REC
OUTPUT TABLES COUNTY
*Produce a file with fields COUNT and COUNTY
ROUTE SCREEN
*Close the file
ECHO TEMP.REC contains one count per county.
?Press <Enter> to continue?
CLS
ECHO We could use this file to map the counts
ECHO but we want rates, so we READ and RELATE it to the
ECHO POP.REC file containing county populations and then
ECHO calculate the rates.
?Press <Enter> to continue?
READ TEMP.REC
RELATE COUNTY POP.REC
*Relate the population file, using county name as the link
DEFINE RATE ###
*Define a new variable
RATE=100000 * (COUNT/POPULATION)
*Calculate the rate
ERASE HEPRATES.REC
*Erase HEPRATES.REC in case it exists
ROUTE HEPRATES.REC
WRITE RECFILE
*Write the new file, including the rates, as HEPRATES.REC
ROUTE SCREEN
CLS
ECHO Just for clarity we will READ and LIST HEPRATES.REC
ECHO so that you can see what Epi Map will use as data.
?Press <Enter> to continue?
READ HEPRATES.REC
LIST
ECHO Now we will leave ANALYSIS and run EPIMAP HEPRATES.MAP
ECHO It contains instructions to load the boundary file
ECHO USCA.BND and the data file HEPRATES.REC and to
ECHO display these together with a customized title
ECHO and legend.
?Press <Enter> to continue?
*Close the file
QUIT
*Leave ANALYSIS
*Now run EPIMAP HEPRATES.MAP to see the results